<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var num =prompt('今晚打几把吃鸡？');
        for (let i=0 ; i<num;i++){

            console.log('今晚把把吃鸡');
        }


        for (let i=0;i<30;i++){
           // console.log(i);
           if(i<3) {
            console.log('只能打人机');
           }else if(i<6){
            console.log('能打匹配');
           }else if(i<10){
            console.log('能打排位')
           }else if(i<30){
            console.log('出师成为游戏大神');
           }
         }

         //倒着遍写1-10
         for (let i = 10; i>0 ; i--){
            console.log(i)
         }
    </script>
</body>
</html>